import request from "@/utils/request";

// 文章分页查询
export const blogList = (data) => {
  return request({
    url: "/view/article/list",
    method: 'POST',
    data
  })
}

// 文章详情
export const blogDetail = (id) => {
  return request({
    url: `/view/blog/detail/${id}`
  })
}

// 文章分类
export const blogCates = () => {
  return request({
    url: '/view/blog/cates'
  })
}

// 文章标签
export const blogTags = () => {
  return request({
    url: '/view/blog/tags'
  })
}